<?php
namespace app\admin\controller;
use think\Controller;
use app\admin\common\Base;
use think\Db;
use think\facade\Request;
use think\facade\Session;
use think\facade\Validate;
use app\admin\service\CallCenter as CC;

/**
* 测试控制器
*/
class Test extends Base{

    public function index(){

    }

    //模拟来电弹屏
    public function popscreen(CC $cc){
        $exten = session('admin.extennum');
        $phone = $this->request->get('phone','');
        $retApi =  $cc->popscreen($exten, $phone);
        return json($retApi);
    }

}